<?php
// +-------------+------------------+------+-----+---------+----------------+
// | Field       | Type             | Null | Key | Default | Extra          |
// +-------------+------------------+------+-----+---------+----------------+
// | id          | int(11)          | NO   | PRI | NULL    | auto_increment |
// | title       | varchar(30)      | YES  |     |         |                |
// | rules       | varchar(250)     | YES  |     |         |                |
// | sort        | int(11)          | YES  |     | 0       |                |
// | status      | tinyint(1)       | YES  |     | 1       |                |
// | member_id   | int(11) unsigned | YES  |     | 0       |                |
// | is_super    | tinyint(1)       | YES  |     | 0       |                |
// | create_time | int(11) unsigned | YES  |     | 0       |                |
// | update_time | int(11) unsigned | YES  |     | 0       |                |
// +-------------+------------------+------+-----+---------+----------------+
namespace app\admin\validate;

use think\Validate;

class AuthGroup extends Validate
{
    protected $rule = [
        "title" => "min:2|max:30",
        "rules" => "max:200",
    ];

    protected $field = [
        "title" => "角色名",
        "rules"  => "角色权限规则",
    ];

    protected $message = [
        "title.min" => "角色名长度必须在2-30个字符之间",
        "title.max" => "角色名长度必须在2-30个字符之间",
        "rules.max" => "角色权限规则长度不能超过200个字符",
    ];
}